package com.baosight.risk.mapper.quartz;

import com.baosight.risk.service.quartz.entity.SyncOrgEntitiy;
import com.baosight.risk.service.xtzy.entity.XtzyCompany;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysSyncOrgMapper {

    /**
     * @param orgList 用户列表
     * @return
     * @description 向系统同步用户数据
     * @author CuiShiHao
     */
    void batchInsertOrgList(@Param("list") List<XtzyCompany> orgList);

    /**
     * @return
     * @description 从dbprodk5中拉去全部宝山钢铁股份有限公司数据
     * @author CuiShiHao
     */
    List<SyncOrgEntitiy> getOrgFromOtherDB(@Param("list") List<String> orgCodeList);

    /**
     * @return
     * @description 从dbprodk5中拉去全部宝山钢铁股份有限公司数据
     * @author CuiShiHao
     */
    List<SyncOrgEntitiy> getAllOrgFromOtherDB(@Param("syncOrgEntitiy") SyncOrgEntitiy syncOrgEntitiy);
}